/* pages/promotion/index.wxss */
/*适配480以上的ipad*/
/* 480/750=0.64*/
@function toPadPx($rpx) {
  @return $rpx*0.64px;
}

@mixin pad-devices {
  @media (min-width:480px) {
    @content;
  }
}

.task-list {
  width: 96%;
  padding: 20rpx;
  display: flex;
  align-content: center;
  flex-direction: column;

  @include pad-devices {
    padding: toPadPx(20);
  }
}

.task-item {
  background-color: #FFFFFF;
  //border-radius: 20rpx;
  position: relative;
}

.task-item:not(:first-child) {
  margin-top: 20rpx;
}

.task-item-title {
  padding: 0 20rpx;
}

.task-item-title:not(:nth-child(1)) {
  margin-top: 20rpx;
}

.task-item-title:nth-child(1) {
  padding-top: 40rpx;
}

.task-content {
  margin-top: 20rpx;
  padding-top: 0;
  //border-bottom-left-radius: 20rpx;
  //border-bottom-right-radius: 20rpx;
  background-color: #EFEFEF;
  //max-height: 880rpx;
  overflow: hidden auto;
}

.task-small-item {
  border-radius: 20rpx;
  margin: 20rpx;
  padding: 20rpx;
  position: relative;
  border-bottom: 1px solid #d9d9d9;
  background-color: #FFFFFF;
}

.sub-task-title {
  height: 40rpx;
  line-height: 40rpx;
  margin-bottom: 20rpx;
  font-size: 28rpx;

  @include pad-devices {
    height: toPadPx(40);
    line-height: toPadPx(40);
    margin-bottom: toPadPx(20);
    font-size: toPadPx(28);
  }
}

.task-title-img,
.action-title-img {
  width: 30rpx;
  height: 30rpx;
  margin-top: 5rpx;
  float: left;
  padding-right: 10rpx;

  @include pad-devices {
    width: toPadPx(30);
    height: toPadPx(30);
    margin-top: toPadPx(5);
    padding-right: toPadPx(10);
  }
}

.task-title-img {
  padding-right: 20rpx;
}

.action-title-img {
  //margin-top: 8rpx;
}

.sub-task-article-title {
  font-weight: bold;
  max-height: 80rpx;
  line-height: 40rpx;
  text-overflow: ellipsis;
  overflow: hidden;
}

.task-state,
.task-sub-state {
  display: inline-block;
  padding: 0 16rpx;
  height: 44rpx;
  line-height: 44rpx;
  font-size: 24rpx;
  font-weight: 500;
  text-align: center;
  margin-right: 8rpx;
  color: #FFFFFF;
  box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.1);
  border-top-right-radius: 20rpx;
  border-bottom-left-radius: 20rpx;

  @include pad-devices {
    width: toPadPx(120);
    height: toPadPx(40);
    line-height: toPadPx(40);
    font-size: toPadPx(24);
    border-top-right-radius: toPadPx(20);
    border-bottom-left-radius: toPadPx(20);
  }
}

.task-state,
.task-state-content {
  position: absolute;
  top: 0;
  right: 0;
}

.task-state-content {
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: flex-end;
}

.task-sub-state {
  margin-left: 20rpx;

  @include pad-devices {
    margin-left: toPadPx(20);
  }
}

.copy-content {
  width: 80%;
  color: #8f8d8e;
  font-size: 24rpx;

  @include pad-devices {
    font-size: toPadPx(24);
  }
}

.share-content {
  width: 100%;
  height: 80rpx;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-item {
  margin-left: 20rpx;
  display: flex;
  align-items: center;
}

.text-overflow {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.report-item-block {
  width: 6rpx;
  height: 30rpx;
  //line-height: 30rpx;
  background: #bdbdbd;
  //margin: 20rpx 0;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  //border-radius: 5rpx;
  @include pad-devices {
    width: toPadPx(6);
    height: toPadPx(30);
    //line-height: toPadPx(30);
    //margin: toPadPx(20) 0;
  }
}

.task-item-sub-title {
  font-size: 24rpx;
  color: #8f8d8e;
  vertical-align: middle;

  @include pad-devices {
    font-size: toPadPx(24);
  }
}

.tag-content {
  width: max-content;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 4rpx;
  margin-right: 10rpx;

  @include pad-devices {
    margin-bottom: toPadPx(4);
    margin-right: toPadPx(10);
  }
}